import React from 'react';

import Loadable from '@src/lib/loadable';

const routes = [
    /*{ path: '/hotel/list', exact: true, component: Loadable( () => import ('@src/views/hotelManager/list') ) },
    { path: '/hotel/order', exact: true, component: Loadable( () => import ('@src/views/hotelManager/order') ) },*/
    {
        path: '/login',
        component: Loadable(() => import('@src/views/user/login')),
    },
    {
        path: '/detail',
        component: Loadable(() => import('@src/views/product'))
    },
    {
        path: '/demo',
        component: Loadable(() => import('@src/views/demo'))
    },

    {
        path: '/hotel',
        component: Loadable(() => import('@src/views/hotelManager')),
        children: [{
            path: '/hotel/list',
            component: Loadable(() => import('@src/views/hotelManager/list')),
        }, {
            path: '/hotel/addOrEdit',
            component: Loadable(() => import('@src/views/hotelManager/addOrEdit')),
        }, {
            path: '/hotel/order',
            component: Loadable(() => import('@src/views/hotelManager/order')),
        },]
    },
    {
        path: "/user",
        component: Loadable(() => import('@src/views/hotelManager')),
        children: [{
            path: '/user/list',
            component: Loadable(() => import('@src/views/hotelManager/user'))
        }],
    },
    {
        path: "/assets",
        component: Loadable(() => import('@src/views/assets')),
        children: [{
            path: '/assets/images',
            component: Loadable(() => import('@src/views/assets/images'))
        }]
    },
    {
        path: "/activity",
        component: Loadable(() => import('@src/views/activity')),
        children: [
            {
                path: '/activity/addOrEdit',
                component: Loadable(() => import('@src/views/activity/addOrEdit'))
            },
            {
                path: '/activity/package',
                component: Loadable(() => import('@src/views/activity/package')),
            },
            {
                path:'/activity/edit',
                component: Loadable(()=>import('@src/views/activity/edit'))
            },
            {
                path:'/activity/hot/order',
                component: Loadable(()=>import('@src/views/activity/order'))
            },
            {
                path:'/activity/hot/refund_reply',
                component: Loadable(()=>import('@src/views/activity/refund_reply'))
            }
        ]
    },
    {
        path:"/company",
        component: Loadable(()=>import('@src/views/company')),
        children: [
            {
                path: '/company/sup_list',
                component:Loadable(()=>import('@src/views/company/sup_list'))
            },
            {
                path: '/company/addSup',
                component:Loadable(()=>import('@src/views/company/sup_add_edit'))
            },
            {
                path: '/company/editSup',
                component:Loadable(()=>import('@src/views/company/sup_add_edit'))
            },
            {
                path: '/company/trade',
                component:Loadable(()=>import('@src/views/company/trade_list'))
            },
            {
                path: '/company/addTrade',
                component:Loadable(()=>import('@src/views/company/trade_add_edit'))
            },
            {
                path: '/company/trade_user_list',
                component:Loadable(()=>import('@src/views/company/user/trade_user_list'))
            }
        ]
    },
    {
        path: "/config",
        component: Loadable(() => import('@src/views/config/')),
        children: [
            {
                path:"/config/attraction",
                component: Loadable(() => import('@src/views/config/attraction'))
            },
            {
                path: "/config/list",
                component: Loadable(() => import('@src/views/config/room'))
            },
            {
                path: "/config/bed",
                component: Loadable(() => import('@src/views/config/bed'))
            },
            {
                path: "/config/facilities",
                component: Loadable(() => import('@src/views/config/facilities'))
            },
            {
                path: "/config/services",
                component: Loadable(() => import('@src/views/config/services'))
            },
            {
                path: "/config/hot_focus",
                component: Loadable(() => import('@src/views/config/focus'))
            },
            {
                path: "/config/area",
                component: Loadable(()=>import('@src/views/config/area'))
            },
            {
                path:"/config/search_city",
                component: Loadable(()=>import('@src/views/config/search_city'))
            },
            {
                path: "/config/star",
                component: Loadable(()=>import('@src/views/config/hotelstar'))
            },
            {
                path: "/config/brand",
                component: Loadable(()=>import('@src/views/config/brand'))
            }
        ]
    }
];

export default routes;
